﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Tron
{
    enum MessageDefinitions
    {
        unknown = -1,
        playerJoined = 0,
        listPlayers = 1,
    }

    class Message : System.Object
    {
        public MessageDefinitions type { get; set; }
        public ArrayList players { get; set; }

        public Message()
        {
            this.type = MessageDefinitions.unknown;
            this.players = null;
        }
        public Message(MessageDefinitions type)
        {
            this.type = type;
            this.players = null;
        }
        public Message(Message msg)
        {
            this.type = msg.type;
            this.players = msg.players;
        }
        public Message(ArrayList players, MessageDefinitions type)
        {
            this.type = type;
            this.players = players;
        }
    }
}
